package com.woniu.cms.goods.core.service.impl;

import com.woniu.cms.goods.core.entity.GoodsInventory;
import com.woniu.cms.goods.core.mapper.GoodsInventoryMapper;
import com.woniu.cms.goods.core.service.IGoodsInventoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 当月库存盘点表 服务实现类
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-20
 */
@Service
public class GoodsInventoryServiceImpl extends ServiceImpl<GoodsInventoryMapper, GoodsInventory> implements IGoodsInventoryService {

    @Autowired
    private GoodsInventoryMapper inventoryMapper;

    @Override
    public List<GoodsInventory> countInventory(String storeName, Integer materialType) {
        List<GoodsInventory> list = inventoryMapper.countInventory(storeName, materialType);
        return list;
    }
}
